/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'

const workbenchRouter = {
  path: '/work',
  component: Layout,
  redirect: '/work/todo',
  name: 'Workspace',
  meta: {
    title: 'Workspace',
    icon: 'table'
  },
  children: [
    {
      path: 'todo',
      name: 'todo',
      component: () => import('@/views/wf/todo/index'),
      meta: { title: 'todo' }
    },
    {
      path: 'apply',
      name: 'apply',
      component: () => import('@/views/wf/apply/index'),
      meta: { title: 'apply' },
      children: [
        {
          path: 'leave',
          component: () => import('@/views/wf/apply/leave'),
          name: 'leave',
          meta: { title: 'leave' }
        },
        {
          path: 'reimburse',
          component: () => import('@/views/wf/apply/reimburse'),
          name: 'reimburse',
          meta: { title: 'reimburse' }
        }
      ]
    }
  ]
};
export default workbenchRouter
